package net.lunjin.service.impl;

import java.math.BigDecimal;
import java.util.List;

import net.lunjin.bean.LookWant;
import net.lunjin.dao.LookWantDao;
import net.lunjin.service.LookWantService;

import org.springframework.beans.factory.annotation.Autowired;

public class LookWantServiceImpl implements LookWantService {
	
	@Autowired
	private LookWantDao lookWantDao;
	
	@Override
	public boolean insert(LookWant lookWant) throws Exception {
		return lookWantDao.insert(lookWant);
	}

	@Override
	public boolean delete(LookWant lookWant) throws Exception {
		return lookWantDao.delete(lookWant);
	}

	@Override
	public List<LookWant> getAll() throws Exception {
		return lookWantDao.findAll();
	}

	@Override
	public LookWant find(BigDecimal companyId, String password) throws Exception {
		return lookWantDao.find(companyId, password);
	}

}
